package com.fashion.server.domain.response;

import java.io.Serializable;

/**
 * 查询返回结果
 * @author WangXin
 *
 */
public class ResponseData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5443532458539281153L;

	/**
	 * 返回结果代码
	 */
	private int code = 200;

	/**
	 * 返回结果信息
	 */
	private String msg = "操作成功";
	
	/**
	 * 总记录数
	 */
	private Integer totalCount;

	/**
	 * 返回对象
	 */
	private Object data;

	public ResponseData() {
	}

	public ResponseData(Object data) {
		this.data = data;
	}

	public ResponseData(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public ResponseData(int code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	} 
	
	public ResponseData(Integer code){
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	/*public String getHttpMsg() {
		return "http:"+msg;
	}*/


}
